package com.ruoyi.bysj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bysj.mapper.SysPayMapper;
import com.ruoyi.bysj.domain.SysPay;
import com.ruoyi.bysj.service.ISysPayService;

/**
 * 支付订单Service业务层处理
 * 
 * @author laow
 * @date 2021-10-29
 */
@Service
public class SysPayServiceImpl implements ISysPayService 
{
    @Autowired
    private SysPayMapper sysPayMapper;

    /**
     * 查询支付订单
     * 
     * @param payId 支付订单主键
     * @return 支付订单
     */
    @Override
    public SysPay selectSysPayByPayId(Long payId)
    {
        return sysPayMapper.selectSysPayByPayId(payId);
    }

    /**
     * 查询支付订单列表
     * 
     * @param sysPay 支付订单
     * @return 支付订单
     */
    @Override
    public List<SysPay> selectSysPayList(SysPay sysPay)
    {
        return sysPayMapper.selectSysPayList(sysPay);
    }

    /**
     * 新增支付订单
     * 
     * @param sysPay 支付订单
     * @return 结果
     */
    @Override
    public int insertSysPay(SysPay sysPay)
    {
        return sysPayMapper.insertSysPay(sysPay);
    }

    /**
     * 修改支付订单
     * 
     * @param sysPay 支付订单
     * @return 结果
     */
    @Override
    public int updateSysPay(SysPay sysPay)
    {
        return sysPayMapper.updateSysPay(sysPay);
    }

    /**
     * 批量删除支付订单
     * 
     * @param payIds 需要删除的支付订单主键
     * @return 结果
     */
    @Override
    public int deleteSysPayByPayIds(Long[] payIds)
    {
        return sysPayMapper.deleteSysPayByPayIds(payIds);
    }

    /**
     * 删除支付订单信息
     * 
     * @param payId 支付订单主键
     * @return 结果
     */
    @Override
    public int deleteSysPayByPayId(Long payId)
    {
        return sysPayMapper.deleteSysPayByPayId(payId);
    }
}
